package com.zhm.springcloud.dao;

import com.zhm.springcloud.domain.Order;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * Date： 2021/3/21 10:55
 *
 * @author ZHM
 */
@Mapper
public interface OrderDao {

    //1新建订单
    void create(Order order);

    //2修改订单状态，从零改为
    void update(@Param("userId") Long userId, @Param("status") Integer status);

}
